package com.model.${packageName};

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;


public class ${table_name}Model  implements Serializable{
    private static final long serialVersionUID = 1L;
    <#if model_column?exists>
        <#list model_column as model>   
         
    <#if (model.columnType == "VARCHAR" || model.columnType == "CHAR")> 
    <#if (model.isPri == "1" || model.changeColumnName?contains('Id'))>@ExcelIgnore</#if>
    @ExcelProperty(value = "${model.columnComment}")
    @ColumnWidth(value = 18)
    private String ${model.changeColumnName};    
    
    public String get${model.capColumnName}() {
        return this.${model.changeColumnName};
    }
    public void set${model.capColumnName}(String ${model.changeColumnName}) {
        this.${model.changeColumnName} = ${model.changeColumnName};
    }
    </#if>    
    <#if model.columnType == "DATE"> 
    @ExcelProperty(value = "${model.columnComment}")
    @ColumnWidth(value = 18)
    private Date ${model.changeColumnName};
    
    public Date get${model.capColumnName}() {
        return this.${model.changeColumnName};
    }
    public void set${model.capColumnName}(Date ${model.changeColumnName}) {
        this.${model.changeColumnName} = ${model.changeColumnName};
    }
    </#if>    
    <#if model.columnType == "INT" > 
    @ExcelProperty(value = "${model.columnComment}")
    @ColumnWidth(value = 18)
    private int ${model.changeColumnName};

    public int get${model.capColumnName}() {
        return this.${model.changeColumnName};
    }
    public void set${model.capColumnName}(int ${model.changeColumnName}) {
        this.${model.changeColumnName} = ${model.changeColumnName};
    }
    </#if>        
    <#if model.columnType == "BIGINT" > 
    @ExcelProperty(value = "${model.columnComment}")
    @ColumnWidth(value = 18)
    private long ${model.changeColumnName};

    public long get${model.capColumnName}() {
        return this.${model.changeColumnName};
    }
    public void set${model.capColumnName}(long ${model.changeColumnName}) {
        this.${model.changeColumnName} = ${model.changeColumnName};
    }
    </#if>      
      
    <#if model.columnType == "DECIMAL" > 
    @ExcelProperty(value = "${model.columnComment}")
    @ColumnWidth(value = 18)
    private BigDecimal ${model.changeColumnName};

    public BigDecimal get${model.capColumnName}() {
        return this.${model.changeColumnName};
    }
    public void set${model.capColumnName}(BigDecimal ${model.changeColumnName}) {
        this.${model.changeColumnName} = ${model.changeColumnName};
    }
    </#if>      
        </#list>
    </#if>

}